package com.kuang.demo03;

public class Client {
    public static void main(String[] args) {
        //真实角色描写
        Host host=new Host();

        //代理角色
        ProxyInvocationHandler proxyInvocationHandler=new ProxyInvocationHandler();
        proxyInvocationHandler.setRent(host);
        Rent proxy = (Rent)proxyInvocationHandler.getProxy();
        proxy.rent();
    }
}
